import {createRouter, createWebHistory} from 'vue-router';
import {createApp} from 'vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import App from './App.vue';
import axios from 'axios';
import qs from 'qs';
import * as echarts from 'echarts';
import DataVVue3 from '@kjgl77/datav-vue3'
import Home from './components/home.vue';
import Login from './components/login.vue';
import Camera from "@/components/camera.vue";
import Test from "@/components/test.vue";
const routes = [
    { path: '/', component: Login },
    { path: '/home', component: Home },
    { path: '/camera', component: Camera },
    { path: '/test', component: Test },
];


const router = createRouter({
    history: createWebHistory(),
    routes
});

const app = createApp(App);
app.provide("$axios", axios);
app.provide("$qs", qs);
app.use(router);
app.use(ElementPlus);
app.use(DataVVue3)
app.mount('#app');
app.config.globalProperties.$echarts = echarts;




